﻿using Blm.Utils.Extensions;
using System;
using static VisionCloud.Core.Model.Ms.MsTask;

namespace VisionCloud.Domain.DtoModel.MiniApp
{
    public class TaskInfoResponseDto
    {
        /// <summary>
        /// 任务Id
        /// </summary>
        public Guid TaskId { get; set; }

        /// <summary>
        /// 任务名称
        /// </summary>
        public string TaskName { get; set; }

        /// <summary>
        /// 项目Id
        /// </summary>
        public Guid ProjectId { get; set; }

        /// <summary>
        /// 工程阶段Id
        /// </summary>
        public Guid ProjectStandardId { get; set; }

        /// <summary>
        /// 工程阶段
        /// </summary>
        public string ProjectStage { get; set; }

        /// <summary>
        /// 任务类型
        /// </summary>
        public string TaskType { get; set; }

        /// <summary>
        /// 任务属性
        /// </summary>
        public string TaskProperty { get; set; }

        /// <summary>
        /// 任务状态
        /// </summary>
        public TaskStatus Status { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 创建日期
        /// </summary>
        public string CreateDate => CreateTime.ToDateStandardString();

        /// <summary>
        /// 是否有点云需要上传
        /// </summary>
        public bool IsNeedUpload { get; set; }
    }
}